package cn.retalsystem.dao;

import cn.retalsystem.bean.Admin;

public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    /**
     * 根据管理员账号和密码查询管理员信息
     * @param admin
     * @return Admin
     */
    public Admin selectAdminByNamePassword(Admin admin);
}